package com.qy139.store.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qy139.entity.Room;
import com.qy139.entity.Seat;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hjl
 * @since 2021-12-04
 */
public interface SeatMapper extends BaseMapper<Seat> {
    /*IPage<Seat> findAllSeat(IPage<Seat> page,String rname);*/

    IPage<Seat> findAllSeat(Page<Seat> page,Integer roomId);

    int updSta(Integer room_id);

    int updStb(Integer room_id);

    Map countSeat(Integer room_id);
}
